package com.carkeeper.blog.service;

import com.carkeeper.blog.pojo.Category;
import com.github.pagehelper.PageInfo;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * @program: carkeeper_parent
 * @Date: 2020/11/25 14:46
 * @Author: qgg
 * @Description:
 */
public interface CategoryService {

    //新增分类
    void add(Category category);

    //删除分类
    void delete(String id);

    //编辑分类
    void update(Category category);

    //查看所有分类
    List<Category> findAll();

    //通过id查询分类
    Category findById(String id);

    //分页查询
    PageInfo findPage(Integer pageNum , Integer pageSize);
}
